<?php
use_helper('I18N');
?>
<div class="breadcrumbs" id="breadcrumbs">
    <script type="text/javascript" language="javascript">
        try {
            ace.settings.check('breadcrumbs', 'fixed')
        } catch(e) {
        }
        $(function($) {
            $('.sparkline').each(function(){
                var $box = $(this).closest('.infobox');
                var barColor = !$box.hasClass('infobox-dark') ? $box.css('color') : '#FFF';
                $(this).sparkline('html', {tagValuesAttribute:'data-values', type: 'bar', barColor: barColor , chartRangeMin:$(this).data('min') || 0} );
            });
        }); // end function
    </script>

    <ul class="breadcrumb">
        <li>
            <i class="icon-home home-icon"></i>
            <a href="#"><?php echo __('My Account') ?></a>
        </li>
        <li class="active"><?php echo __('Account Summary') ?></li>
    </ul>
    <!-- .breadcrumb -->

    <div class="nav-search" id="nav-search">
        <form class="form-search">
            <span class="input-icon">
                <input type="text" placeholder="Search ..." class="nav-search-input"
                       id="nav-search-input" autocomplete="off"/>
                <i class="icon-search nav-search-icon"></i>
            </span>
        </form>
    </div>
    <!-- #nav-search -->
</div>

<div class="page-content">
<!--<div class="page-header">
    <h1>
        <?php /*echo __('Registration') */?>
        <small>
            <i class="icon-double-angle-right"></i>
            <?php /*echo __('Activate Member') */?>
        </small>
    </h1>
</div>-->
<!-- /.page-header -->
<div class="row">
<div class="col-xs-12">
<h3 class="header smaller lighter green"><?php echo __('Account Summary') ?></h3>
<!-- PAGE CONTENT BEGINS -->

<?php include_component('component', 'alert', array('param' => $sf_user->getAttribute(Globals::SESSION_DISTID, 0))) ?>

<div class="row">
<div class="space-6"></div>

<div class="col-sm-7 infobox-container">
    <div class="infobox infobox-green  ">
        <div class="infobox-icon">
            <i class="icon-comments"></i>
        </div>

        <div class="infobox-data">
            <span class="infobox-data-number"><?php echo __('Last Login')?></span>

            <div class="infobox-content"><?php echo $lastLogin;?></div>
        </div>
        <!--<div class="stat stat-success">0%</div>-->
    </div>

    <div class="infobox infobox-blue  ">
        <div class="infobox-icon">
            <i class="icon-twitter"></i>
        </div>

        <div class="infobox-data">
            <span class="infobox-data-number"><?php echo count($pendingDistributors); ?></span>

            <div class="infobox-content"><?php echo __('pending members')?></div>
        </div>

        <!--<div class="badge badge-success">
            +32%
            <i class="icon-arrow-up"></i>
        </div>-->
    </div>

    <div class="infobox infobox-orange2  ">
        <div class="infobox-chart">
            <span class="sparkline" data-values="196,128,202,177,154,94,100,170,224"></span>
        </div>

        <div class="infobox-data">
            <span class="infobox-data-number"><?php echo $totalNetworks ?></span>

            <div class="infobox-content"><?php echo __('networks')?></div>
        </div>

        <!--<div class="badge badge-success">
            7.2%
            <i class="icon-arrow-up"></i>
        </div>-->
    </div>

    <div class="space-6"></div>


    <div class="infobox infobox-blue infobox-small infobox-dark">
        <div class="infobox-chart">
            <span class="sparkline" data-values="3,4,2,3,4,4,2,2"></span>
        </div>

        <div class="infobox-data">
            <div class="infobox-content"><?php echo __('MP')?></div>
            <div class="infobox-content">$<?php echo number_format($mpBalance, 2)?></div>
        </div>
    </div>
    <div class="infobox infobox-green infobox-small infobox-dark">
        <div class="infobox-chart">
            <span class="sparkline" data-values="3,4,2,3,4,4,2,2"></span>
        </div>

        <div class="infobox-data">
            <div class="infobox-content"><?php echo __('MG')?></div>
            <div class="infobox-content">$<?php echo number_format($mgBalance, 2)?></div>
        </div>
    </div>

    <div class="infobox infobox-blue infobox-small infobox-dark">
        <div class="infobox-icon">
            <i class="	icon-credit-card "></i>
        </div>

        <div class="infobox-data">
            <div class="infobox-content"><?php echo __('MT4')?></div>
            <div class="infobox-content"><?php echo number_format($mt4Balance,2) ?></div>
        </div>
    </div>
</div>

<div class="vspace-sm"></div>

<!-- /span -->
</div>
<!-- /row -->

<div class="hr hr32 hr-dotted"></div>

<!-- /row -->

<!-- PAGE CONTENT ENDS -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div><!-- /.page-content -->